function [ action,Q ] = getGreedyAction( net,State )
%GETGREEDYACTION Summary of this function goes here
%   Detailed explanation goes here
[ ~, piece ] = qStateToGameState(State );

actions = getActionList(piece);
actions = 1:actions;
State = repmat(State,1,size(actions,2));
Qtry = getStateActionQ(net,State,actions); 
[Q,action] = max(Qtry);

end

